package student.aistar.day06.biz;

import java.util.Arrays;

/**
 * 本类用来演示: 实体类 - 数据的存储
 *
 * @author: success
 * @date: 2021/7/22 9:36 上午
 */
public class Emp {
    private int id;

    private String name;

    private double salary;

    private Emp[] emps;//一个上司对应多个下属

    public Emp() {
    }

    public Emp(int id, String name, double salary, Emp[] emps) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.emps = emps;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Emp[] getEmps() {
        return emps;
    }

    public void setEmps(Emp[] emps) {
        this.emps = emps;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                '}';
    }

}
